import Auth from '../cloudbaseapi/cloudbase-login'
export function login(data) {
  return Auth.signInWithEmailAndPassword(data.username, data.password)
}
export function logout() {
  return Auth.signOut()
}
export function getInfo() {
  return { 'avatar': Auth.currentUser.avatarUrl, 'name': Auth.currentUser.username }
}
